﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class team_doctors : System.Web.UI.Page
{
    protected Administrator admin;
    protected int SortID;
    protected Team tea;
    protected void Page_Load(object sender, EventArgs e)
    {
        tea = Team.Check();
        if (tea == null)
        {
            Session.Add(Params.SystemError, "请先登录");
            Response.Redirect(Params.RootHttp + "default.aspx");
        }
        if (!Page.IsPostBack)
        {
            this.MyDataBind();
        }
    }

    public void MyDataBind()
    {
        this.Title = this.tea.RealName + "-导师列表";
        this.conNav.Title = "导师列表";
        this.SortID = 1;
        string sql = "select UserGuid from Doctor where TeamGuid="+this.tea.Guid.ToString()+" order by UserGuid asc";
        DataTable dt = Fun.CreateDt(sql);
        this.repDoctors.DataSource = dt;
        this.repDoctors.DataBind();
    }
}
